include(${CMAKE_CURRENT_LIST_DIR}/../../Config/CMakeLists.txt)

# 选择芯片平台 #
if(AnyKaEV300L)
    set(CMAKE_ANYKA_EV300L   1)
    set(CMAKE_NONSUPPORT_GET_YUV   1)
elseif(IngenicT41)
    set(CMAKE_INGENIC_T41N   1)
else()
    message(FATAL_ERROR "no Chip")
endif()

# 选择IOT平台 #
if(Tuya)
    set(CMAKE_TUYA_IOT 1)
elseif(ProductTest)
    set(CMAKE_PRODUCT_TEST   1)
elseif(ComProcess)
    set(CMAKE_COM_PROCESS 1)
else()
    message(FATAL_ERROR "no IOT")
endif()

# 选择看门狗控制方式 #
if(AnyKaEV300L)
    set(CmakeWatchDogMode "AnyKa")
else()
    # IngenicT41 #
    set(CmakeWatchDogMode "Linux")
endif()

# 选择GPIO控制方式 #
set(CmakeGpioCtrlMode "ClassGpio")

# 选择云台步进电机控制方式 #
set(CmakePtzMotorMode "IoctlMotor")

# 选择芯片平台PWM控制方式 #
if(AnyKaEV300L)
    set(CmakePwmCodeMode "AnyKaPwm")
elseif(IngenicT41)
    set(CmakePwmCodeMode "SysClassPwm")
endif()

if(ProMakeVal)

elseif(CHZH_A001)
    set(CMAKE_CHZH_PRODUCT  1)
    set(CMAKE_SENSOR_1080P  1)
    set(CMAKE_DEFAULT_FLIP  1)
    set(CMAKE_IRCUT_REVERSE 1)
    set(CMAKE_SUPPORT_QRCODE    1)
    set(CMAKE_LED_ON_LOW_LEVEL  1)
    set(CMAKE_SUPPORT_AB6012BX  1)
    set(CMAKE_SUPPORT_SD_RECORD 1)
    set(CMAKE_SERIAL_BAUD_RATE_115200   1)
else()
    message(FATAL_ERROR "no project")

endif(ProMakeVal)

configure_file(${CMAKE_CURRENT_LIST_DIR}/ProConf.h.in ${CMAKE_CURRENT_LIST_DIR}/../InCommon/InComConf.h)
